<template>
  <div>
    <!-- 轮播图 -->
    <swipe :lunbotulist='lunbotulist' :isfull='true'></swipe>
  <!-- 九宫格 -->
   
  
    <Goodslist></Goodslist>
  </div>
 
  
</template>

<script>
import Goodslist from '../shop/Goodslist'
import swipe from '../subcomponents/swipe'
export default {
  components:{
    Goodslist,
    swipe
  },
  data() {
    return {
      lunbotulist:[]
    }
  },
  created() {
    this.getLunbotu();
  },
  methods:{
    getLunbotu(){
      this.$axios.get('api/getlunbo').then(res => {
        if(res.data.status === 0){
          this.lunbotulist = res.data.message
        }else{
          Toast('请求出错');
        }
      })
    }
  }
};
</script>

<style scoped>

</style>